Add Book to My BookshelfPurchase This Book Online

Appendix C - Binary/Decimal Tables

Cisco & IP Addressing
Louis D. Rossi, Louis R. Rossi and Thomas Rossi
  Copyright © 1999 The McGraw-Hill Companies, Inc.

Appendix C: Binary/Decimal Tables*
Overview
To translate a binary number to decimal, you need to multiply each binary digit by an appropriate power of 2. Below, we show the multipliers that are used to convert 10010111 to decimal.
1  0   0  1 0 1 1 1
128 64 32 16 8 4 2 1
Thus 10010111 is (128)(1) + (64)(0) + (32)(0) + (16)(1) + (8)(0) + (4)(1) + (2)(1) + (1)(1) which equals 128 + 16 + 4 + 2 + 1 = 151.
  * Originally published in Feit, TCP/IP: Architecture, Protocols, and Implementation with IPv6 and IP Security. McGraw-Hill, 1999.
Table B.1 below lists the binary to decimal translations that are used to write subnet masks. In this case, just the set of binary numbers that have contiguous 1s on the left are translated. Note that the decimal numbers start at 128 and increase by 64, 32, 16, 8, 4, 2, and 1. Table B.2 on the pages that follow displays all 8-bit translations between binary and decimal numbers.
TABLE B.1  Subnet Mask Translation
Binary
Decimal
10000000
128
11000000
192
11100000
224
11110000
240
11111000
248
11111100
252
11111110
254
11111111
255
TABLE F.2  Binary to Decimal Translation
Binary
Decimal
Binary
Decimal
Binary
Decimal
Binary
Decimal
00000000
0
00100000
32
01000000
64
01100000
96
00000001
1
00100001
33
01000001
65
01100001
97
00000010
2
00100010
34
01000010
66
01100010
98
00000011
3
00100011
35
01000011
67
01100011
99
00000100
4
00100100
36
01000100
68
01100100
100
00000101
5
00100101
37
01000101
69
01100101
101
00000110
6
00100110
38
01000110
70
01100110
102
00000111
7
00100111
39
01000111
71
01100111
103
00001000
8
00101000
40
01001000
72
01101000
104
00001001
9
00101001
41
01001001
73
01101001
105
00001010
10
00101010
42
01001010
74
01101010
106
00001011
11
00101011
43
01001011
75
01101011
107
00001100
12
00101100
44
01001100
76
01101100
108
00001101
13
00101101
45
01001101
77
01101101
109
00001110
14
00101110
46
01001110
78
01101110
110
00001111
15
00101111
47
01001111
79
01101111
111
00010000
16
00110000
48
01010000
80
01110000
112
00010001
17
00110001
49
01010001
81
01110001
113
00010010
18
00110010
50
01010010
82
01110010
114
00010011
19
00110011
51
01010011
83
01110011
115
00010100
20
00110100
52
01010100
84
01110100
116
00010101
21
00110101
53
01010101
85
01110101
117
00010110
22
00110110
54
01010110
86
01110110
118
00010111
23
00110111
55
01010111
87
01110111
119
00011000
24
00111000
56
01011000
88
01111000
120
00011001
25
00111001
57
01011001
89
01111001
121
00011010
26
00111010
58
01011010
90
01111010
122
00011011
27
00111011
59
01011011
91
01111011
123
00011100
28
00111100
60
01011100
92
01111100
124
00011101
29
00111101
61
01011101
93
01111101
125
00011110
30
00111110
62
01011110
94
01111110
126
00011111
31
00111111
63
01011111
95
01111111
127
10000000
128
10100000
160
11000000
192
11100000
224
10000001
129
10100001
161
11000001
193
11100001
225
10000010
130
10100010
162
11000010
194
11100010
226
10000011
131
10100011
163
11000011
195
11100011
227
10000100
132
10100100
164
11000100
196
11100100
228
10000101
133
10100101
165
11000101
197
11100101
229
10000110
134
10100110
166
11000110
198
11100110
230
10000111
135
10100111
167
11000111
199
11100111
231
10001000
136
10101000
168
11001000
200
11101000
232
10001001
137
10101001
169
11001001
201
11101001
233
10001010
138
10101010
170
11001010
202
11101010
234
10001011
139
10101011
171
11001011
203
11101011
235
10001100
140
10101100
172
11001100
204
11101100
236
10001101
141
10101101
173
11001101
205
11101101
237
10001110
142
10101110
174
11001110
206
11101110
238
10001111
143
10101111
175
11001111
207
11101111
239
10010000
144
10110000
176
11010000
208
11110000
240
10010001
145
10110001
177
11010001
209
11110001
241
10010010
146
10110010
178
11010010
210
11110010
242
10010011
147
10110011
179
11010011
211
11110011
243
10010100
148
10110100
180
11010100
212
11110100
244
10010101
149
10110101
181
11010101
213
11110101
245
10010110
150
10110110
182
11010110
214
11110110
246
10010111
151
10110111
183
11010111
215
11110111
247
10011000
152
10111000
184
11011000
216
11111000
248
10011001
153
10111001
185
11011001
217
11111001
249
10011010
154
10111010
186
11011010
218
11111010
250
10011011
155
10111011
187
11011011
219
11111011
251
10011100
156
10111100
188
11011100
220
11111100
252
10011101
157
10111101
189
11011101
221
11111101
253
10011110
158
10111110
190
11011110
222
11111110
254
10011111
159
10111111
191
11011111
223
11111111
255

 


 
Books24x7.com, Inc © 2000 –  Feedback